package org.ihelpuoo.localize;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class DateTimeUtils
{
	public static final String		DATA_TIME_PATTERN	= "yyyy-MM-dd HH:mm:ss";
	public static final DateFormat	DateTimeFormat		= new SimpleDateFormat(DATA_TIME_PATTERN);

	public static String convertToString(Calendar c)
	{
		return DateTimeFormat.format(c.getTime());
	}

	public static String convertToString(java.util.Date d)
	{
		return DateTimeFormat.format(d);
	}
}
